package com.example.service;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test
{
    public static void main(String[] args)
    {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        System.out.println(df.format(date));
    }
}
